package com.zengqingfa.springboot.validation.demo.entity;

import com.zengqingfa.springboot.validation.demo.annotation.IsMobile;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @fileName: UserSaveDto
 * @author: zengqf3
 * @date: 2020-10-6 19:51
 * @description:
 */
@Data
public class UserSaveDto {

    private String userName;

    @NotEmpty(message = "手机不能为空")
    @IsMobile(message = "手机格式不正确")
    private String mobile;
}
